package com.xbongbong.saas.model.impl;

import com.xbongbong.paas.domain.dao.ManualSignDao;
import com.xbongbong.paas.domain.entity.ManualSignEntity;
import com.xbongbong.paas.toolbox.exception.XbbException;
import com.xbongbong.saas.model.ManualSignModel;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @author sunshaoxiang
 * @ClassName ManualSignModelImpl
 * @Description 手签 model 实现层
 * @Date 2022/8/11 14:41
 * @Version 1.0
 **/
@Component
public class ManualSignModelImpl implements ManualSignModel {
    @Resource
    private ManualSignDao manualSignDao;

    @Override
    public ManualSignEntity getByUserId(String corpid, String userId) {
        return manualSignDao.getByUserId(userId, corpid);
    }

    @Override
    public Integer insert(ManualSignEntity manualSignEntity) throws XbbException {
        return manualSignDao.insert(manualSignEntity);
    }

    @Override
    public Integer update(ManualSignEntity manualSignEntity) throws XbbException {
        return manualSignDao.update(manualSignEntity);
    }

    @Override
    public List findEntitys(Map<String, Object> params) {
        return null;
    }

    @Override
    public Integer getEntitysCount(Map<String, Object> param) {
        return null;
    }

    @Override
    public List findEntitysWithoutSub(Map<String, Object> param) {
        return null;
    }


}
